#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>
#include <QtGui>
#include "ggraphtable.h"
#include "gnode.h"
#include "bfs.h"
#include "graph.h"

class MainWindow : public QMainWindow
{
    Q_OBJECT

    GGraphTable *table;
    BFS bfsAlgorithm;

    QComboBox *startComboBox;
    QTableView *parentListWidget;
    QTableView *distanceListWidget;

    QStandardItemModel *parentModel;
    QStandardItemModel *distanceModel;

    QLabel *outputLabel;

    QCheckBox *checkTree;

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

public slots:
    void showHelp();
    void showOpen();
    void calculateBFS();
    void processedNodes(QModelIndex index);
};

#endif // MAINWINDOW_H
